package xyz.yuanjilu.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import xyz.yuanjilu.dao.OaLeaveDao;
import xyz.yuanjilu.entity.OaLeaveEntity;
import xyz.yuanjilu.service.OaLeaveService;



@Service("oaLeaveService")
public class OaLeaveServiceImpl implements OaLeaveService {
	@Autowired
	private OaLeaveDao oaLeaveDao;
	
	@Override
	public OaLeaveEntity queryObject(Long id){
		return oaLeaveDao.queryObject(id);
	}
	
	@Override
	public List<OaLeaveEntity> queryList(Map<String, Object> map){
		return oaLeaveDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return oaLeaveDao.queryTotal(map);
	}
	
	@Override
	public void save(OaLeaveEntity oaLeave){
		oaLeaveDao.save(oaLeave);
	}
	
	@Override
	public void update(OaLeaveEntity oaLeave){
		oaLeaveDao.update(oaLeave);
	}
	
	@Override
	public void delete(Long id){
		oaLeaveDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		oaLeaveDao.deleteBatch(ids);
	}
	
}
